#ifndef ODESOLVER_H
#define ODESOLVER_H

#include "ParticleSystem.h"
#include "LinearSystemSolver.h"

class ODESolver
{
public:
	ODESolver(void);
	ODESolver(double timestep, LinearSystemSolver *ls, ParticleSystem *ps);
	~ODESolver(void);
	void SolverInitialize(double timestep, LinearSystemSolver *ls, ParticleSystem *ps);
	void Solve();
	void Update();
	void ForewardEuler();
	void Clear();

public:
	LinearSystemSolver *ls;
	ParticleSystem *ps;
	double dt;
	double *accleration;
};

#endif

